<?php
if (!defined('PHPFOX')) die('We need phpfox!!');
?>

<table>
	<tr>
		<td> </td>
		<td> {phrase var='iaip1.user_name'} </td>
		<td> {phrase var='iaip1.email'} </td>
		<td> {phrase var='iaip1.last_login'} </td>
	</tr>
	{foreach from=$aUsers item=aUser name=inactive key=iKey}
		<tr class="checkRow{if is_int($iKey/2)} tr{else}{/if}">	
			<td><input type="checkbox" class="iaiChkInactive" value="{$aUser.user_id}"></td>
			<td><a href="{url link=`$aUser.user_name`}">{$aUser.user_name}</a></td>
			<td>{$aUser.email}</td>
			<td>{$aUser.last_login|date:'core.global_update_time'}</td>
		</tr>
	
	{foreachelse}
		<tr>
			<td class="tr" colspan="4">
				{phrase var='iaip1.no_users_could_be_found'}
			</td>
		</tr>
	{/foreach}
</table>

<div class="table_clear"> 
	<input type="button" value="{phrase var='iaip1.delete_users'}" onclick="Phpfox.IAI.deleteUsers();">
</div>
